/*
@auther fenglei
*/
package xxutil

import (
	"github.com/google/uuid"
	"github.com/rs/xid"
	"strings"
)

// 20位可解析日期的ID
func XID() string {
	guid := xid.New()
	return guid.String()
}

// uuid 32位
func UUID() string {
	uid := uuid.New()
	return strings.ReplaceAll(uid.String(), "-", "")
}
